<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"emoh.xyz","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="123456781.#&#x2F;etc&#x2F;hosts172.16.240.6    p730a172.16.240.7    p730b10.254.0.11     p730a-private10.254.0.12     p730b-private172.16.240.8    p730a-vip172.16.240.9    p730b-vip172.16.240.10   p73">
<meta property="og:type" content="article">
<meta property="og:title" content="ORACLE 11G RAC(Virtualbox&amp;&amp;Oracle Linux 7)">
<meta property="og:url" content="http://emoh.xyz/2020/05/27/2019-07-17-ORACLE%2011G%20RAC(Virtualbox&&Oracle%20Linux%207)/index.html">
<meta property="og:site_name" content="Just do it!">
<meta property="og:description" content="123456781.#&#x2F;etc&#x2F;hosts172.16.240.6    p730a172.16.240.7    p730b10.254.0.11     p730a-private10.254.0.12     p730b-private172.16.240.8    p730a-vip172.16.240.9    p730b-vip172.16.240.10   p73">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-05-27T02:14:16.029Z">
<meta property="article:modified_time" content="2020-05-28T03:33:48.002Z">
<meta property="article:author" content="Emoh">
<meta property="article:tag" content="oracle 安装部署">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://emoh.xyz/2020/05/27/2019-07-17-ORACLE%2011G%20RAC(Virtualbox&&Oracle%20Linux%207)/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>ORACLE 11G RAC(Virtualbox&&Oracle Linux 7) | Just do it!</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Just do it!</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://emoh.xyz/2020/05/27/2019-07-17-ORACLE%2011G%20RAC(Virtualbox&&Oracle%20Linux%207)/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/touxiang.png">
      <meta itemprop="name" content="Emoh">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Just do it!">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          ORACLE 11G RAC(Virtualbox&&Oracle Linux 7)
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-05-27 10:14:16" itemprop="dateCreated datePublished" datetime="2020-05-27T10:14:16+08:00">2020-05-27</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-05-28 11:33:48" itemprop="dateModified" datetime="2020-05-28T11:33:48+08:00">2020-05-28</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/oracle-%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE/" itemprop="url" rel="index"><span itemprop="name">oracle 安装配置</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">1.#&#x2F;etc&#x2F;hosts</span><br><span class="line">172.16.240.6    p730a</span><br><span class="line">172.16.240.7    p730b</span><br><span class="line">10.254.0.11     p730a-private</span><br><span class="line">10.254.0.12     p730b-private</span><br><span class="line">172.16.240.8    p730a-vip</span><br><span class="line">172.16.240.9    p730b-vip</span><br><span class="line">172.16.240.10   p730scan</span><br></pre></td></tr></table></figure>




<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br></pre></td><td class="code"><pre><span class="line">2.#网络配置</span><br><span class="line">eth0      Link encap:Ethernet  HWaddr 08:00:27:3B:20:C2  </span><br><span class="line">         inet addr:172.16.240.6  Bcast:172.16.240.255  Mask:255.255.255.0</span><br><span class="line">         inet6 addr: fe80::a00:27ff:fe3b:20c2&#x2F;64 Scope:Link</span><br><span class="line">         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</span><br><span class="line">         RX packets:47 errors:0 dropped:0 overruns:0 frame:0</span><br><span class="line">         TX packets:59 errors:0 dropped:0 overruns:0 carrier:0</span><br><span class="line">         collisions:0 txqueuelen:1000</span><br><span class="line">         RX bytes:8503 (8.3 KiB)  TX bytes:8867 (8.6 KiB)</span><br><span class="line">eth1      Link encap:Ethernet  HWaddr 08:00:27:02:28:2E  </span><br><span class="line">         inet addr:10.254.0.11  Bcast:10.254.0.255  Mask:255.255.255.0</span><br><span class="line">         inet6 addr: fe80::a00:27ff:fe02:282e&#x2F;64 Scope:Link</span><br><span class="line">         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</span><br><span class="line">         RX packets:40 errors:0 dropped:0 overruns:0 frame:0</span><br><span class="line">         TX packets:59 errors:0 dropped:0 overruns:0 carrier:0</span><br><span class="line">         collisions:0 txqueuelen:1000</span><br><span class="line">         RX bytes:6546 (6.3 KiB)  TX bytes:8909 (8.7 KiB)</span><br><span class="line">eth2      Link encap:Ethernet  HWaddr 08:00:27:DE:5D:EA  </span><br><span class="line">         inet addr:172.40.4.187  Bcast:172.40.4.255  Mask:255.255.255.0</span><br><span class="line">         inet6 addr: fe80::a00:27ff:fede:5dea&#x2F;64 Scope:Link</span><br><span class="line">         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</span><br><span class="line">         RX packets:105 errors:0 dropped:0 overruns:0 frame:0</span><br><span class="line">         TX packets:141 errors:0 dropped:0 overruns:0 carrier:0</span><br><span class="line">         collisions:0 txqueuelen:1000</span><br><span class="line">         RX bytes:16692 (16.3 KiB)  TX bytes:19740 (19.2 KiB)</span><br><span class="line">3.#安装需求包</span><br><span class="line">binutils-2.17.50.0.6</span><br><span class="line">compat-libstdc++-33-3.2.3</span><br><span class="line">elfutils-libelf-0.125</span><br><span class="line">elfutils-libelf-devel-0.125</span><br><span class="line">elfutils-libelf-devel-static-0.125</span><br><span class="line">gcc-4.1.2</span><br><span class="line">gcc-c++-4.1.2</span><br><span class="line">glibc-2.5-24</span><br><span class="line">glibc-common-2.5</span><br><span class="line">glibc-devel-2.5</span><br><span class="line">glibc-headers-2.5</span><br><span class="line">kernel-headers-2.6.18</span><br><span class="line">ksh-20060214</span><br><span class="line">libaio-0.3.106</span><br><span class="line">libaio-devel-0.3.106</span><br><span class="line">libgcc-4.1.2</span><br><span class="line">libgomp-4.1.2</span><br><span class="line">libstdc++-4.1.2</span><br><span class="line">libstdc++-devel-4.1.2</span><br><span class="line">make-3.81</span><br><span class="line">sysstat-7.0.2</span><br><span class="line">unixODBC-2.2.11</span><br><span class="line">unixODBC-devel-2.2.11</span><br><span class="line">4.#修改操作系统参数</span><br><span class="line">&#x2F;etc&#x2F;security&#x2F;limits.conf</span><br><span class="line">oracle soft nproc 2047</span><br><span class="line">oracle hard nproc 16384</span><br><span class="line">oracle soft nofile 1024</span><br><span class="line">oracle hard nofile 65536</span><br><span class="line">grid soft nproc 2047</span><br><span class="line">grid hard nproc 16384</span><br><span class="line">grid soft nofile 1024</span><br><span class="line">grid hard nofile 65536</span><br><span class="line">将以下内容添加到文件 &#x2F;etc&#x2F;sysctl.conf并运行：sysctl -p 。</span><br><span class="line">fs.aio-max-nr &#x3D; 1048576</span><br><span class="line">fs.file-max &#x3D; 6815744</span><br><span class="line">kernel.shmall &#x3D; 2097152</span><br><span class="line">kernel.shmmax &#x3D; 2076407808</span><br><span class="line">kernel.shmmni &#x3D; 4096</span><br><span class="line">kernel.sem &#x3D; 250 32000 100 128</span><br><span class="line">net.ipv4.ip_local_port_range &#x3D; 9000 65500</span><br><span class="line">net.core.rmem_default &#x3D; 262144</span><br><span class="line">net.core.rmem_max &#x3D; 4194304</span><br><span class="line">net.core.wmem_default &#x3D; 262144</span><br><span class="line">net.core.wmem_max &#x3D; 1048586</span><br><span class="line">将以下内容添加到文件&#x2F;etc&#x2F;pam.d&#x2F;login。</span><br><span class="line">session required pam_limits.so</span><br><span class="line">5.#创建用户</span><br><span class="line">groupadd -g 500 oinstall</span><br><span class="line">groupadd -g 501 dba</span><br><span class="line">groupadd -g 502 oper</span><br><span class="line">groupadd -g 600 asmadmin</span><br><span class="line">groupadd -g 601 asmoper</span><br><span class="line">groupadd -g 602 asmdba</span><br><span class="line">useradd -g oinstall -G dba,asmdba,oper oracle</span><br><span class="line">useradd -g oinstall -G asmadmin,asmdba,asmoper,dba grid</span><br><span class="line">mkdir -p &#x2F;oracle&#x2F;app&#x2F;grid</span><br><span class="line">mkdir -p &#x2F;oracle&#x2F;app&#x2F;oracle&#x2F;product&#x2F;11.2.0&#x2F;</span><br><span class="line">chown -R oracle:oinstall &#x2F;oracle</span><br><span class="line">chmod -R 775 &#x2F;oracle</span><br><span class="line">su - oracle</span><br><span class="line">vi .bash_profile</span><br><span class="line">添加以下内容</span><br><span class="line">DISPLAY&#x3D;172.40.1.169:0.0</span><br><span class="line">export DISPLAY</span><br><span class="line">export PATH</span><br><span class="line">export ORACLE_BASE&#x3D;&#x2F;oracle&#x2F;app&#x2F;oracle</span><br><span class="line">export ORACLE_HOME&#x3D;&#x2F;oracle&#x2F;app&#x2F;oracle&#x2F;product&#x2F;11.2.0&#x2F;</span><br><span class="line">export PATH&#x3D;$ORACLE_HOME&#x2F;bin:$PATH</span><br><span class="line">export ORACLE_SID&#x3D;etyyhis1</span><br><span class="line">umask 0022</span><br><span class="line">su - grid</span><br><span class="line">vi .bash_profile</span><br><span class="line">添加以下内容</span><br><span class="line">DISPLAY&#x3D;172.40.1.169:0.0</span><br><span class="line">export DISPLAY</span><br><span class="line">export PATH</span><br><span class="line">export ORACLE_BASE&#x3D;&#x2F;oracle&#x2F;app&#x2F;grid&#x2F;</span><br><span class="line">export ORACLE_HOME&#x3D;&#x2F;oracle&#x2F;app&#x2F;11.2.0&#x2F;grid</span><br><span class="line">export PATH&#x3D;$ORACLE_HOME&#x2F;bin:$PATH</span><br><span class="line">export ORACLE_SID&#x3D;+ASM1</span><br><span class="line">umask 0022</span><br><span class="line">6.安装ASMLIB</span><br><span class="line">创建共享磁盘</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\asm1.vdi -size 5120 -format VDI -variant Fixed</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\asm2.vdi -size 5120 -format VDI -variant Fixed</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\asm3.vdi -size 5120 -format VDI -variant Fixed</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\asm4.vdi -size 5120 -format VDI -variant Fixed</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\asm5.vdi -size 5120 -format VDI -variant Fixed</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\data1.vdi -size 10240 -format VDI -variant Fixed</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\data2.vdi -size 10240 -format VDI -variant Fixed</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\data3.vdi -size 10240 -format VDI -variant Fixed</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\data4.vdi -size 10240 -format VDI -variant Fixed</span><br><span class="line">VBoxManage.exe createhd -filename d:\vms\sharedisk\data5.vdi -size 10240 -format VDI -variant Fixed</span><br><span class="line">连接共享磁盘到RAC1</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 1 --device 0 --type hdd --medium d:\vms\sharedisk\asm1.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 2 --device 0 --type hdd --medium d:\vms\sharedisk\asm2.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 3 --device 0 --type hdd --medium d:\vms\sharedisk\asm3.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 4 --device 0 --type hdd --medium d:\vms\sharedisk\asm4.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 5 --device 0 --type hdd --medium d:\vms\sharedisk\asm5.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 6 --device 0 --type hdd --medium d:\vms\sharedisk\data1.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 7 --device 0 --type hdd --medium d:\vms\sharedisk\data2.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 8 --device 0 --type hdd --medium d:\vms\sharedisk\data3.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 9 --device 0 --type hdd --medium d:\vms\sharedisk\data4.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac1 --storagectl &quot;SATA 控制器&quot; --port 10 --device 0 --type hdd --medium d:\vms\sharedisk\data5.vdi --mtype shareable</span><br><span class="line">共享共享磁盘</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\asm1.vdi --type shareable</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\asm2.vdi --type shareable</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\asm3.vdi --type shareable</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\asm4.vdi --type shareable</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\asm5.vdi --type shareable</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\data1.vdi --type shareable</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\data2.vdi --type shareable</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\data3.vdi --type shareable</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\data4.vdi --type shareable</span><br><span class="line">VBoxManage.exe modifyhd d:\vms\sharedisk\data5.vdi --type shareable</span><br><span class="line">连接共享磁盘到RAC2</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 1 --device 0 --type hdd --medium d:\vms\sharedisk\asm1.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 2 --device 0 --type hdd --medium d:\vms\sharedisk\asm2.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 3 --device 0 --type hdd --medium d:\vms\sharedisk\asm3.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 4 --device 0 --type hdd --medium d:\vms\sharedisk\asm4.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 5 --device 0 --type hdd --medium d:\vms\sharedisk\asm5.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 6 --device 0 --type hdd --medium d:\vms\sharedisk\data1.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 7 --device 0 --type hdd --medium d:\vms\sharedisk\data2.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 8 --device 0 --type hdd --medium d:\vms\sharedisk\data3.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 9 --device 0 --type hdd --medium d:\vms\sharedisk\data4.vdi --mtype shareable</span><br><span class="line">VBoxManage.exe storageattach rac2 --storagectl &quot;SATA 控制器&quot; --port 10 --device 0 --type hdd --medium d:\vms\sharedisk\data5.vdi --mtype shareable</span><br><span class="line">rpm -ivh oracleasm-support-2.1.5-1.el6.x86_64.rpm</span><br><span class="line">rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm</span><br><span class="line">查看磁盘 ls -l &#x2F;dev&#x2F;sd*</span><br><span class="line">磁盘分区 fdisk &#x2F;dev&#x2F;sdb</span><br><span class="line">******************</span><br><span class="line">[root@p730a ~]# fdisk &#x2F;dev&#x2F;sdf</span><br><span class="line">Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel</span><br><span class="line">Building a new DOS disklabel with disk identifier 0xfd5d3b90.</span><br><span class="line">Changes will remain in memory only, until you decide to write them.</span><br><span class="line">After that, of course, the previous content won&#39;t be recoverable.</span><br><span class="line">Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)</span><br><span class="line">WARNING: DOS-compatible mode is deprecated. It&#39;s strongly recommended to</span><br><span class="line">        switch off the mode (command &#39;c&#39;) and change display units to</span><br><span class="line">        sectors (command &#39;u&#39;).</span><br><span class="line">Command (m for help): n</span><br><span class="line">Command action</span><br><span class="line">  e   extended</span><br><span class="line">  p   primary partition (1-4)</span><br><span class="line">p</span><br><span class="line">Partition number (1-4): 1</span><br><span class="line">First cylinder (1-652, default 1):</span><br><span class="line">Using default value 1</span><br><span class="line">Last cylinder, +cylinders or +size&#123;K,M,G&#125; (1-652, default 652):</span><br><span class="line">Using default value 652</span><br><span class="line">Command (m for help): p</span><br><span class="line">Disk &#x2F;dev&#x2F;sdf: 5368 MB, 5368709120 bytes</span><br><span class="line">255 heads, 63 sectors&#x2F;track, 652 cylinders</span><br><span class="line">Units &#x3D; cylinders of 16065 * 512 &#x3D; 8225280 bytes</span><br><span class="line">Sector size (logical&#x2F;physical): 512 bytes &#x2F; 512 bytes</span><br><span class="line">I&#x2F;O size (minimum&#x2F;optimal): 512 bytes &#x2F; 512 bytes</span><br><span class="line">Disk identifier: 0xfd5d3b90</span><br><span class="line">  Device Boot      Start         End      Blocks   Id  System</span><br><span class="line">&#x2F;dev&#x2F;sdf1               1         652     5237158+  83  Linux</span><br><span class="line">Command (m for help): w</span><br><span class="line">The partition table has been altered!</span><br><span class="line">Calling ioctl() to re-read partition table.</span><br><span class="line">Syncing disks.</span><br><span class="line">****************************</span><br><span class="line">其他磁盘雷同</span><br><span class="line">初始化ASM</span><br><span class="line">****************************</span><br><span class="line">[root@p730a ~]# oracleasm configure -i</span><br><span class="line">Configuring the Oracle ASM library driver.</span><br><span class="line">This will configure the on-boot properties of the Oracle ASM library</span><br><span class="line">driver.  The following questions will determine whether the driver is</span><br><span class="line">loaded on boot and what permissions it will have.  The current values</span><br><span class="line">will be shown in brackets (&#39;[]&#39;).  Hitting &lt;ENTER&gt; without typing an</span><br><span class="line">answer will keep that current value.  Ctrl-C will abort.</span><br><span class="line">Default user to own the driver interface []: grid</span><br><span class="line">Default group to own the driver interface []: dba</span><br><span class="line">Start Oracle ASM library driver on boot (y&#x2F;n) [n]: y</span><br><span class="line">Scan for Oracle ASM disks on boot (y&#x2F;n) [y]: y</span><br><span class="line">Writing Oracle ASM library driver configuration: done</span><br><span class="line">****************************</span><br><span class="line">[root@p730a ~]# oracleasm init</span><br><span class="line">Creating &#x2F;dev&#x2F;oracleasm mount point: &#x2F;dev&#x2F;oracleasm</span><br><span class="line">Loading module &quot;oracleasm&quot;: oracleasm</span><br><span class="line">Mounting ASMlib driver filesystem: &#x2F;dev&#x2F;oracleasm</span><br><span class="line">****************************</span><br><span class="line">创建ASM磁盘</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK1 &#x2F;dev&#x2F;sdb1</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK2 &#x2F;dev&#x2F;sdc1</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK3 &#x2F;dev&#x2F;sdd1</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK4 &#x2F;dev&#x2F;sde1</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK5 &#x2F;dev&#x2F;sdf1</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK6 &#x2F;dev&#x2F;sdg1</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK7 &#x2F;dev&#x2F;sdh1</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK8 &#x2F;dev&#x2F;sdi1</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK9 &#x2F;dev&#x2F;sdj1</span><br><span class="line">&#x2F;usr&#x2F;sbin&#x2F;oracleasm createdisk DISK10 &#x2F;dev&#x2F;sdk1</span><br><span class="line">7:创建RAC2主机</span><br><span class="line">VBoxManage.exe clonehd d:\vms\rac1\rac1.vdi d:\vms\rac2\rac2.vdi</span><br><span class="line">修改rac2主机的主机名，IP，相关用户的环境变量</span><br><span class="line">8.SSH等效性</span><br><span class="line">分别su - grid  su - oracle 执行以下命令</span><br><span class="line">在节点一执行：</span><br><span class="line">mkdir ~&#x2F;.ssh</span><br><span class="line">chmod 700 ~&#x2F;.ssh</span><br><span class="line">&#x2F;usr&#x2F;bin&#x2F;ssh-keygen -t dsa</span><br><span class="line">在节点二上执行</span><br><span class="line">mkdir ~&#x2F;.ssh</span><br><span class="line">chmod 700 ~&#x2F;.ssh</span><br><span class="line">&#x2F;usr&#x2F;bin&#x2F;ssh-keygen -t dsa</span><br><span class="line">在节点一上执行</span><br><span class="line">cat ~&#x2F;.ssh&#x2F;id_dsa.pub &gt;&gt; ~&#x2F;.ssh&#x2F;authorized_keys</span><br><span class="line">ssh p730b cat ~&#x2F;.ssh&#x2F;id_dsa.pub &gt;&gt; ~&#x2F;.ssh&#x2F;authorized_keys</span><br><span class="line">scp ~&#x2F;.ssh&#x2F;authorized_keys p730b:~&#x2F;.ssh&#x2F;authorized_keys</span><br><span class="line">9.安装grid</span><br><span class="line">.&#x2F;runcluvfy.sh stage -pre crsinst -n p730a,p730b -fixup -verbos</span><br></pre></td></tr></table></figure>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/oracle-%E5%AE%89%E8%A3%85%E9%83%A8%E7%BD%B2/" rel="tag"># oracle 安装部署</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/05/27/2019-07-17-ORACLE%2011G%20DataGuard%20%E5%AE%89%E8%A3%85%E9%83%A8%E7%BD%B2/" rel="prev" title="ORACLE 11G DataGuard 安装部署">
      <i class="fa fa-chevron-left"></i> ORACLE 11G DataGuard 安装部署
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/05/27/2019-07-18-ELK%20%E5%90%AF%E5%8A%A8%E8%84%9A%E6%9C%AC/" rel="next" title="ELK 启动脚本">
      ELK 启动脚本 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Emoh"
      src="/images/touxiang.png">
  <p class="site-author-name" itemprop="name">Emoh</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">29</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">16</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">23</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Emoh</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
